package com.sailor.common;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.sailor.util.JacksonUtil;
import lombok.Builder;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
@Builder
@JsonIgnoreProperties(ignoreUnknown = true)
public class CommonResponse {


    public static final CommonResponse SUCCESS = CommonResponse.builder().message("").build();

    @Builder.Default
    @JsonProperty(value = "result_code")
    private int resultCode = 0;
    @Builder.Default
    private String message = "";
    @Builder.Default
    private Object data = JacksonUtil.readValue("{}");
}
